package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.util.Date;

/**
 * 会员DAO
 */
@Mapper
public interface MemberDao {


    Integer Today(LocalDate beginTime, LocalDate endTime);

    @Select("select count(*) from t_member")
    Integer all();

    Integer week(LocalDate begin, LocalDate end);


    Member findByTelephone(String telephone);

    void insert(Member member);
    Integer sumByYear(LocalDate startDate, LocalDate endDate);

    String getByMemberId(Integer memberId);

    String getBySetmealId(Integer setmealId);
}
